#include<iostream>
#include<string>
using namespace std;
int main(){
	string a;
	int f=0;
	int hasnumber=0;
	int hasletter=0; 
	cin>>a;
	int ct=a.size();
	if(a.size()<8){
		cout<<"invalid length";
		f=1;
	}
	for(int i=0;i<ct;i++){
		if(a[i]>='0'&&a[i]<='9'){
			hasnumber=1;
		}
		else{
			if(a[i]>='A'&&a[i]<='Z'){
				hasletter=1;
			}
			else{
				if(a[i]>='a'&&a[i]<='z'){
					hasletter=1;
				}
				else{
					cout<<"invalid char";
					f=1;
				}
			}
		}
	}
	if(hasletter==0){
		cout<<"letter missing";
		f=1;
	}
	else if(hasnumber==0){
		cout<<"number missing ";
		f=1;
	}
	if(f==0){
		cout<<"yes";
	}
} 
